using SqlSugar;
using System;

namespace B.S.XZYData.Domain.LJC
{
    /// <summary>
    /// 工序分派
    /// </summary>
    [SugarTable("wo_assign")]
    public class WorkOrderAssignModel
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 工单工序 ID
        /// </summary>
        [SugarColumn(ColumnName = "wop_id", IsNullable = false)]
        public int WorkOrderProcessId { get; set; }

        /// <summary>
        /// 员工 ID
        /// </summary>
        [SugarColumn(ColumnName = "emp_id", IsNullable = false)]
        public int EmployeeId { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        [SugarColumn(ColumnName = "emp_name", Length = 50, IsNullable = false)]
        public string EmployeeName { get; set; }

        /// <summary>
        /// 分派数量
        /// </summary>
        [SugarColumn(ColumnName = "qty", IsNullable = false)]
        public int Quantity { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "c_tm")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "u_tm")]
        public DateTime? UpdateTime { get; set; }
    }
} 